package com.vdong.trade.order.common.enums;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by WangGang on 2017/6/22 0022.
 * E-mail userbean@outlook.com
 * The final interpretation of this procedure is owned by the author
 */
public enum ProcessExceptionEnum {
    EB00000000("EB00000000", "该订单号对应的订单无效或不存在"),
    EB00000001("EB00000001", "无效的登录用户"),
    EB00000002("EB00000002", "无效的推客"),
    EB00000003("EB00000003", "无效的商品"),
    EB00000004("EB00000004", "下单失败"),
    EB00000005("EB00000005", "插入交易流水失败"),
    EB00000006("EB00000006", "支付失败"),
    EB00000007("EB00000007", "无效的登陆用户"),
    EB00000008("EB00000008", "传入参数有误"),
    EB00000009("EB00000009", "订单更新失败"),
    EB00000010("EB00000010", "微信支付请求失败"),
    EB00000011("EB00000011", "微信回调找不到改单号对应的订单"),
    EB00000012("EB00000012", "找不到对应的对象"),
    EB00000013("EB00000013", "新增对象失败"),
    EB00000014("EB00000014", "订单状态不正确"),


    EB00000100("EB00000100", "请传入有效的订单模型 EVENT"),
    EBXXXXXXXX("EBXXXXXXXX", "测试异常");


    // 成员变量
    @Getter
    @Setter
    private String code;
    @Getter
    @Setter
    private String message;

    // 构造方法
    private ProcessExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;

    }
}
